<%@ Page language="c#" Codebehind="StaffReport.aspx.cs" AutoEventWireup="false" Inherits="TimeSheet.Protected.StaffReport" %>
<%@ Import namespace="System.Web.UI.HtmlControls"%>
<%@ Import namespace="System.Web.UI.WebControls"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>Staff Report</title>
	</head>
	<body>
		<form id="StaffReport" method="post" runat="server">
			<h1>
				<asp:label id="lblTitle" runat="server"></asp:label>
			</h1>
			<h3>
				<asp:label id="lblDateRange" runat="server"></asp:label>
			</h3>
			<p>
				<h3>
					Billable Hours by Project:
				</h3>
			<p>
				<table width="100%">
					<tr>
						<td valign="bottom" width="80%">
							<asp:datagrid id="dgBillable" runat="server" bordercolor="#CCCCCC" borderstyle="None" borderwidth="1px" backcolor="White" cellpadding="4" gridlines="Horizontal" forecolor="Black" autogeneratecolumns="False" width="100%">
								<selecteditemstyle font-bold="True" forecolor="White" backcolor="#CC3333"></selecteditemstyle>
								<headerstyle font-bold="True" forecolor="White" backcolor="#333333"></headerstyle>
								<footerstyle forecolor="Black" backcolor="#CCCC99"></footerstyle>
								<columns>
									<asp:boundcolumn datafield="client_name" sortexpression="client_name" readonly="True" headertext="Client Name"></asp:boundcolumn>
									<asp:boundcolumn datafield="project_name" sortexpression="project_name" readonly="True" headertext="Project Name"></asp:boundcolumn>
									<asp:boundcolumn datafield="hours" sortexpression="hours" readonly="True" headertext="Total Hours" dataformatstring="{0:F}">
										<headerstyle width="100px"></headerstyle>
										<itemstyle horizontalalign="Right"></itemstyle>
									</asp:boundcolumn>
								</columns>
								<pagerstyle horizontalalign="Right" forecolor="Black" backcolor="White"></pagerstyle>
							</asp:datagrid>&nbsp;
						</td>
						<td valign="bottom" align="right">&nbsp;
							<asp:label id="lblTotalBillable" runat="server"></asp:label>
						</td>
					</tr>
				</table>
			</p>
			<p></p>
			<h3>
				<asp:label id="lblNonBillableTitle" runat="server" visible="False">Non-Billable Hours: </asp:label>
			</h3>
			<p>
				<table width="100%">
					<tr>
						<td valign="bottom" width="80%">
							<asp:datagrid id="dgNonBillable" runat="server" bordercolor="#CCCCCC" borderstyle="None" borderwidth="1px" backcolor="White" cellpadding="4" gridlines="Horizontal" forecolor="Black" autogeneratecolumns="False" width="100%" visible="False">
								<selecteditemstyle font-bold="True" forecolor="White" backcolor="#CC3333"></selecteditemstyle>
								<headerstyle font-bold="True" forecolor="White" backcolor="#333333"></headerstyle>
								<footerstyle forecolor="Black" backcolor="#CCCC99"></footerstyle>
								<columns>
									<asp:boundcolumn datafield="activity_name" sortexpression="activity_name" readonly="True" headertext="Activity Name"></asp:boundcolumn>
									<asp:boundcolumn datafield="hours" sortexpression="hours" readonly="True" headertext="Total Hours" dataformatstring="{0:F}">
										<headerstyle width="100px"></headerstyle>
										<itemstyle horizontalalign="Right"></itemstyle>
									</asp:boundcolumn>
								</columns>
								<pagerstyle horizontalalign="Right" forecolor="Black" backcolor="White"></pagerstyle>
							</asp:datagrid>&nbsp;
						</td>
						<td valign="bottom" align="right">&nbsp;
							<asp:label id="lblTotalNonBillable" runat="server"></asp:label>
						</td>
					</tr>
				</table>
			</p>
			<p></p>
			<h3>
				<asp:label id="lblClaimedOvertime" runat="server" visible="False">Claimed Overtime: </asp:label></h3>
			<p>
				<table width="100%">
					<tr>
						<td valign="bottom" width="80%">
							<asp:datagrid id="dgOvertime" runat="server" width="100%" autogeneratecolumns="False" forecolor="Black" gridlines="Horizontal" cellpadding="4" backcolor="White" borderwidth="1px" borderstyle="None" bordercolor="#CCCCCC">
								<selecteditemstyle font-bold="True" forecolor="White" backcolor="#CC3333"></selecteditemstyle>
								<headerstyle font-bold="True" forecolor="White" backcolor="#333333"></headerstyle>
								<footerstyle forecolor="Black" backcolor="#CCCC99"></footerstyle>
								<columns>
									<asp:boundcolumn datafield="claimed_date" sortexpression="claimed_date" readonly="True" headertext="Date" dataformatstring="{0:d}"></asp:boundcolumn>
									<asp:boundcolumn datafield="claimed_hours" sortexpression="claimed_hours" readonly="True" headertext="Claimed Hours" dataformatstring="{0:F}">
										<headerstyle width="100px"></headerstyle>
										<itemstyle horizontalalign="Right"></itemstyle>
									</asp:boundcolumn>
								</columns>
								<pagerstyle horizontalalign="Right" forecolor="Black" backcolor="White"></pagerstyle>
							</asp:datagrid>&nbsp;
						</td>
						<td valign="bottom" align="right">&nbsp;
							<asp:label id="lblOvertime" runat="server" visible="False"></asp:label>
						</td>
					</tr>
				</table>
				<br>
				<hr>
				<table width="100%">
					<tr>
						<td width="625" align="right">
							<b>Total Hours: &nbsp; </b>
						</td>
						<td align="right">&nbsp; <b><u>
									<asp:label id="lblTotalHours" runat="server"></asp:label></u></b>
						</td>
					</tr>
				</table>
			<p></p>
		</form>
	</body>
</html>
